package com.kgar.repository;

import com.kgar.entity.graph.node.CompanyNode;
import org.springframework.data.neo4j.repository.Neo4jRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface CompanyRepository extends Neo4jRepository<CompanyNode,Long> {

    Optional<CompanyNode> findByCompanyNameAndAddress(String companyName, String address);
}
